package cn.shyouchi.wuguanjia.android.ui.event.checknum;

import android.view.View;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import java.util.List;

import cn.shyouchi.wuguanjia.android.R;

/**
 * Created by Eenie on 2016/11/18 at 14:37
 * Email: 472279981@qq.com
 * Des:
 */

public class PreviewCheckPointAdapter extends BaseQuickAdapter<CheckNumEntity.ResultMessageBean.InfoBean,BaseViewHolder> {





    public PreviewCheckPointAdapter(List<CheckNumEntity.ResultMessageBean.InfoBean> data) {
        super(R.layout.item_event_sel_check_point_layout, data);
    }

    @Override
    protected void convert(final BaseViewHolder holder, final CheckNumEntity.ResultMessageBean.InfoBean bean) {
        holder.setText(R.id.tv_position, String.valueOf(holder.getPosition() + 1));
      holder.getView(R.id.ck_state).setVisibility(View.INVISIBLE);

        holder.setText(R.id.tv_point_name, bean.getInspectionname());

        holder.setText(R.id.tv_point_time, bean.getInspectiontime());
//
//
//        holder.itemView.setOnClickListener(new View.OnClickListener() {
//            @Override
//            public void onClick(View v) {
//                bean.setCheck(!bean.isCheck());
//                notifyItemChanged(holder.getPosition());
//            }
//        });
    }


}
